{% extends "layout.html" %}
{% block head %}
  <title>{{ gettext("Sign in") }}</title>
{% endblock %}
{% block body %}
  <h1>{{ gettext("Sign in") }}</h1>
  <input type="hidden" id="action" value="{{ url_for('user.sign_in') }}"/>
  <form name="frmSignIn" id="frmSignIn" action="{{ url_for('user.sign_in') }}" method="post">
     <table>
       <tr><td><input type="hidden" value="{{ request.args.get('next', '') }}" name=next_url id="next_url"></td></tr>
       <tr><td>{{ gettext("E-mail") }}</td></tr>
       <tr><td><input type=text class="basic-input" size=30 name=email id=email></td></tr>
       <tr><td>{{ gettext("Password") }}</td></tr>
       <tr><td><input type=password class="basic-input" size=30 name=password id=password></td></tr>
       <tr><td>
         <div id="item-error">
           <span id="error" class="error">{{ error }}</span>
         </div>
       </td></tr>
       <tr><td><input type="checkbox" name=auto_sign_in value="true" id=auto_sign_in>{{ gettext("Auto sign in") }}</input></td></tr>
       <tr><td><input id="btnSignIn" class="btn" type="button" value={{ gettext("Sign in") }} onclick="return sign_in();"></td></tr>
    </table>
  </form>
  <script type="text/javascript" src="{{ url_for('static', filename='js/jquery-1.8.2.min.js') }}" async="true"></script>
  <script type="text/javascript" src="{{ url_for('static', filename='js/user.sign_in.js') }}" async="true"></script>
{% endblock %}